package com.mamahao.vmnetframework.framework.net.datasource

import com.mamahao.vmnetframework.framework.net.basis.callback.RequestMultiplyCallback
import com.mamahao.vmnetframework.framework.net.service.MMHService
import kotlinx.coroutines.Deferred

interface ISimpleDataSource{

    fun getService(): MMHService

    fun getService(host:String): MMHService

    fun <T> execute(deferred: Deferred<T>, callback: RequestMultiplyCallback<T>)

    fun onDestory()

}